home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Multimedia / MPlay / Source / Process.h < prev    next >
Encoding:
Text File  |  1995-10-13  |  396 b   |  21 lines

  1. /*
  2.  * spawn and control a subprocess, from Garfinkel and Mahoney, vol 1
  3.  */
  4. #import <appkit/appkit.h>
  5.  
  6. @interface Process:Object
  7. {
  8.     int        toProcess[2];
  9.     int        fromProcess[2];
  10.     int        pid;
  11.     BOOL    fdHandlerInstalled;
  12. }
  13.  
  14. - initFromCommand:(char **)argv;
  15. - free;
  16. - (int)toFd;
  17. - (int)fromFd;
  18. - writeLine:(const char *)aLine;
  19. - dpsWatchFD:(DPSFDProc)handler
  20.             data:(void *)userData priority:(int)pri;
  21. @end